<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <title>报价常量表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline" role="form">
                <div class="form-group">
                    <a @click="reset">
                        <i class="fa fa-refresh"></i>
                    </a>
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.configKey" @keyup.enter="query"
                           placeholder="常量键值">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.configValue" @keyup.enter="query"
                           placeholder="参数值">
                </div>&nbsp;&nbsp;&nbsp;
                <div class="form-group">
                    <input type="text" class="form-control input-sm" v-model="q.configDesc" @keyup.enter="query"
                           placeholder="描述">
                </div>&nbsp;&nbsp;&nbsp;
                <#if shiro.hasPermission("quoteParts:quoteparts:list")>
                <a class="btn btn-primary btn-sm" @click="query"><i class="fa fa-search"></i>&nbsp;查询</a>
            </#if>
			<#if shiro.hasPermission("quoteConfig:quoteconfigvalue:save")>
            <a class="btn btn-primary btn-sm" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<!--<#if shiro.hasPermission("quoteConfig:quoteconfigvalue:update")>
            <a class="btn btn-primary btn-sm" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("quoteConfig:quoteconfigvalue:delete")>
            <a class="btn btn-primary btn-sm" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>-->
            </form>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
						<div class="form-group">
                        <div class="col-sm-2 control-label">常量键值</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="quoteConfigValue.configKey" placeholder="常量键值"/>
                        </div>
                    </div>
						<div class="form-group">
                        <div class="col-sm-2 control-label">常量类型</div>
                         <!--   <select class="form-control col-sm-10" v-model="quoteConfigValue.configType">
                                <option v-for="item in e.quoteConfigEnum" :value="item.id">{{item.describe}}</option>
                            </select>-->
                            <div class="col-sm-10">
                                <select class="form-control input-sm" v-model="quoteConfigValue.configType">
                                    <option v-for="item in e.quotePrintFactoryEnum" :value="item.value">{{item.describe}}</option>
                                </select>
                            </div>
                    </div>
						 <div class="form-group">
                        <div class="col-sm-2 control-label">参数值</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="quoteConfigValue.configValue" placeholder="参数值"/>
                        </div>
                    </div>
						 <div class="form-group">
                        <div class="col-sm-2 control-label">描述</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="quoteConfigValue.configDesc" placeholder="描述"/>
                        </div>
                    </div>
						 <div class="form-group">
                        <div class="col-sm-2 control-label">是否屏蔽</div>
                         <select class="form-control col-sm-2 input-sm"  v-model="quoteConfigValue.delFlag">
                             <option class="form-control input-sm"  value="false">不屏蔽</option>
                             <option class="form-control input-sm"  value="true">屏蔽</option>
                         </select>
                    </div>
						 <div class="form-group">
                        <div class="col-sm-2 control-label">是否在前端显示</div>
                         <select class="form-control col-sm-2 input-sm"  v-model="quoteConfigValue.display">
                             <option class="form-control input-sm"  value="true">显示</option>
                             <option class="form-control input-sm"  value="false">不显示</option>
                         </select>
                    </div>
                        <div class="form-group">
                        <div class="col-sm-2 control-label">创建人员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="quoteConfigValue.createUser" placeholder="创建人员" disabled/>
                        </div>
                    </div>
						<div class="form-group">
                        <div class="col-sm-2 control-label">更新时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="quoteConfigValue.updateDate" placeholder="更新时间" disabled/>
                        </div>
                    </div>
						 <div class="form-group">
                        <div class="col-sm-2 control-label">更新人员</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control input-sm" v-model="quoteConfigValue.updateUser" placeholder="更新人员"  disabled/>
                        </div>
                    </div>
						<div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary  btn-sm" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning  btn-sm" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/quoteConfig/quoteconfigvalue.js?_${.now?long}"></script>
</body>
</html>